package com.dhu.dao;

import com.dhu.pojo.UserFollow;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserFollowMapper {
    // 是否关注
    UserFollow isFollowUser (int myId, int userId);
    // 关注
    int follow (int myId, int userId);
    // 取消关注
    int disFollow (int myId, int userId);
    // 获取关注的用户id
    int[] selectFollowUser (int myId);
    // 获取粉丝id
    int[] selectFun (int userId);
}
